package com.iot.ig.websocket.util;

import com.iot.ig.websocket.handler.IotWebSocketHandler;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class WebSocketMessageUtil {

    @Resource
    private IotWebSocketHandler iotWebSocketHandler;

    public void sendMessageToUser(String username, String message) {
        iotWebSocketHandler.sendMessageToUser(username, message);
    }
}
